![]() |
PATH![]() |
Sets a key as a keyboard equivalent for a menu item.
public static final void setMenuItemCmdKey (Menu menu,
int itemIndex, char ch);
public static final void setMenuItemCmdKey (MenuItem item, char ch);
You can specify the menu item by its name or by indicating the menu that contains it and its index number (the first item in the menu has index 0, the second has index 1, and so on). You can assign only one character to act as the keyboard equivalent (for example, "A" but not "option- A"). For example, if you assign G as the character, Command-G selects the menu item.
Previous | Back Up One Level | Next |